<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//前台主页控制器
class IndexController extends Controller{
	private $model;
	public function __init(){
		//实例化分类表
		$this->model = new \Common\Model\shopGoods;
	}
    //默认
    public function index(){
    	//获得羽绒服分类下面的商品
    	$data = $this->model->limit(10)->get();
		View::with('data',$data);
		//载入模板
		View::make();
    }

	
}
